package com.sc.nft.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.TaskPlan;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.vo.TaskPlanRecordVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 用户任务进度表(sc_task_plan)数据Mapper
 *
 * @author 张翔宇
 * @since 2023-03-29 11:14:52
 * @description 由 Mybatisplus Code Generator 创建
*/
@Mapper
public interface TaskPlanMapper extends BaseMapper<TaskPlan> {

    /**
     * 分页获取星球任务记录
     * @param page
     * @param userId
     * @param taskIdList
     * @param startTime
     * @param endTime
     * @return
     */
    Page<TaskPlanRecordVO> pageAdmin(Page page, @Param("userId")Long userId, @Param("taskIdList")List<Long> taskIdList, @Param("startTime") Date startTime, @Param("endTime")Date endTime);

}
